package com.itheima.ThreadFangfa;

public class Test2 {
    public static void main(String[] args) {
        Mythread mythread = new Mythread("线程A");
        mythread.start();
        mythread.setName("线程B");
        System.out.println("线程名称："+ mythread.getName());


        Thread thread = Thread.currentThread();
        System.out.println(thread.getName());
    }
}
